/* eslint-disable no-extend-native */
if (!String.prototype.format) {
  String.prototype.format = function() {
    if (arguments.length === 0) {
      return this
    }
    const args = arguments
    return this.replace(/\{(\d+)\}/g, function(m, i) {
      return args[i]
    })
  }
}
